<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>间接物流成本</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/employee/outsourceCostDetail/logisticsCostList">间接物流成本</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="logisticsCost" action="${ctx}/employee/outsourceCostDetail/queryLogisticsCost" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>员工编号：</label>
				<form:input path="employeeNumber" htmlEscape="false" maxlength="64" class="input-medium"/>
			</li>
			<li><label>国家：</label>
				<sys:treeselect id="company" name="company.id" value="${logisticsCost.company.id}" labelName="company.name" labelValue="${logisticsCost.company.name}"
					title="仓库" url="/sys/office/treeData?type=1" cssClass="input-small" allowClear="true" notAllowSelectParent="true"/>
			</li>

			<li><label>仓库：</label>
				<sys:treeselect id="office" name="office.id" value="${logisticsCost.office.id}" labelName="office.name" labelValue="${logisticsCost.office.name}"
					title="部门" url="/sys/office/treeData?type=2" cssClass="input-small" allowClear="true" notAllowSelectParent="true"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				
				<th>仓库</th>
				<th>国家</th>
				<th>日期</th>
				<th>星期</th>			
				<th>ID</th>
				<th>职位</th>
				<th>职级</th>
				<th>name</th>								
				
				<th>员工类别</th>	
				<th>出勤工时</th>
				<th>正常工时</th>
				<th>假期工时</th>											
				<th>OT*1.25</th>
				<th>OT*1.5</th>
				<th>OT*2</th>
				<th>OT*2.5</th>
				<th>OT*3</th>								
				<th>薪资标准</th>
				
				<th>正常工时-cost</th>
				<th>假期工时-cost</th>
				<th>OT*1.25-cost</th>
				<th>OT*1.5-cost</th>
				<th>OT*2-cost</th>
				
				<th>OT*2.5-cost</th>
				<th>OT*3-cost</th>
				<th>差异调整</th>
				<th>应发工资</th>
				
				<th>雇主保险/super</th>
				<th>workcover</th>
				<th>美国商保</th>
				<th>德国残障金</th>
				<th>企业税</th>
				
				<th>雇主成本</th>
				<th>汇率</th>
				<th>雇主成本（RMB)</th>
				</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="logisticsCost">
			<tr>				
				<td>
					${logisticsCost.office.name}
				</td>
				<td>
					${logisticsCost.company.name}
				</td>
				<td>
					<fmt:formatDate value="${logisticsCost.attendanceDate}" pattern="yyyy-MM-dd"/>
				</td>
				<td>
					${logisticsCost.weekDay}
				</td>				
				<td>
					${logisticsCost.employeeNumber}
				</td>
				<td>
					${fns:getDictLabel(logisticsCost.position, 'position_type', '')}
				</td>
				<td>
					${fns:getDictLabel(logisticsCost.rank, 'rank_type', '')}
				</td>
				<td>
					${logisticsCost.name}
				</td>												
				<td>
					${fns:getDictLabel(logisticsCost.employeeType, 'employee_type', '')}
				</td>
				<td>${logisticsCost.wageHour}</td>
				<td>${logisticsCost.normalHour}</td> 
				<td>${logisticsCost.holidayHour}</td>
				<td></td>
				<td>${logisticsCost.overtimeHour}</td>
				<td></td>
				<td></td>
				<td></td>				
				<td>
					${logisticsCost.wageStandard}
				</td>										
				<td>
					<fmt:formatNumber type="number" value="${logisticsCost.normalHour*logisticsCost.wageStandard}" pattern="0.00" maxFractionDigits="2"/> 					
				</td>
				<td>
					<fmt:formatNumber type="number" value="${logisticsCost.holidayHour*logisticsCost.wageStandard}" pattern="0.00" maxFractionDigits="2"/>
				</td>
				<td>					
				</td>
				<td>
					<fmt:formatNumber type="number" value="${logisticsCost.overtimeHour*logisticsCost.wageStandard}" pattern="0.00" maxFractionDigits="2"/>
				</td>
				<td></td>
				<td></td>
				<td></td>
				
				<td>
					<fmt:formatNumber type="number" value="${logisticsCost.diffAdjust*logisticsCost.wageStandard}" pattern="0.00" maxFractionDigits="2"/>
					
				</td>
				<td><fmt:formatNumber type="number" value="${logisticsCost.normalHour*logisticsCost.wageStandard+logisticsCost.diffAdjust*logisticsCost.wageStandard+logisticsCost.holidayHour*logisticsCost.wageStandard}" pattern="0.00" maxFractionDigits="2"/></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>